package com.lanyou.esb.cook.proxy.redis.vo;

import java.util.List;

/**
 * redis批量操作数据组合
 * 
 * @author Davey.wu
 */
public class Group {
	/** hash类型 **/
	private List<Entry> hashs;
	/** string类型 **/
	private List<Entry> strs;
	/** set类型 **/
	private List<Entry> sets;
	/** list类型 **/
	private List<Entry> lists;
	/** 锁 **/
	private String lock;

	public List<Entry> getHashs() {
		return hashs;
	}

	public void setHashs(List<Entry> hashs) {
		this.hashs = hashs;
	}

	public List<Entry> getStrs() {
		return strs;
	}

	public void setStrs(List<Entry> strs) {
		this.strs = strs;
	}

	public List<Entry> getSets() {
		return sets;
	}

	public void setSets(List<Entry> sets) {
		this.sets = sets;
	}

	public List<Entry> getLists() {
		return lists;
	}

	public void setLists(List<Entry> lists) {
		this.lists = lists;
	}

	public String getLock() {
		return lock;
	}

	public void setLock(String lock) {
		this.lock = lock;
	}

	/**
	 * 帮助实体
	 * 
	 * @author Davey.wu
	 */
	public static class Entry {
		/** 键 **/
		private String key;
		/** 域 **/
		private String field;
		/** 值 **/
		private String value;
		/** 超时时间 **/
		private int timeOut;
		/** 类类型 **/
		private Class classes;
		/** 是否需要转换 **/
		private boolean convert;
		/** 操作类型 **/
		private RedisActionType type;
		/** 需要过滤的KEY **/
		private String filter;

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String getField() {
			return field;
		}

		public void setField(String field) {
			this.field = field;
		}

		public Class getClasses() {
			return classes;
		}

		public void setClasses(Class classes) {
			this.classes = classes;
		}

		public boolean isConvert() {
			return convert;
		}

		public void setConvert(boolean convert) {
			this.convert = convert;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String value) {
			this.value = value;
		}

		public RedisActionType getType() {
			return type;
		}

		public void setType(RedisActionType type) {
			this.type = type;
		}

		public int getTimeOut() {
			return timeOut;
		}

		public void setTimeOut(int timeOut) {
			this.timeOut = timeOut;
		}

		public String getFilter() {
			return filter;
		}

		public void setFilter(String filter) {
			this.filter = filter;
		}

	}

}
